package com.waitingresult.demo.enums;

import lombok.Getter;

/**
 * @Author: WangShuai
 * @CreateTime: 2022-10-20  12:29
 * @Description: 系统错误的枚举消息
 * @Version: 1.0
 */
@Getter
public enum ErrorMessageEnum {
    REQUEST_ERROR(500, "请求异常"),
    PARAMETER_PARSING_ERROR(500, "参数解析错误，请检查您输入的内容是否正确"),
    THIS_CATEGORY_EXIST_ACTICLE_NOT_ALLOWED_TO_DELETE(500, "当前分类存在文章，不允许删除"),
     HTTP_MESSAGE_NOT_READ_ERROR (500,"请求参数缺失") ;
    /**
     * 状态码
     */
    private final Integer code;

    /**
     * 错误信息
     */
    private final String msg;

    ErrorMessageEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
